<?php

abstract class DISTR {
    const   InstallerPath   = HTML_PATH;
    const   UpdaterPath     = HTML_PATH;
    const   JavaDistrPath   = HTML_PATH;
}

abstract class ACTIONS {

    const GET_LAST_300          = 'GET_LAST_300';

    const INSTALL_NEWDS         = 'INSTALL_NEWDS';
    const INSTALL_ADD_APP       = 'INSTALL_ADD_APP';
    const INSTALL_ADD_OBJTYPE   = 'INSTALL_ADD_OBJTYPE';
    const INSTALL_ADD_CDBTYPE   = 'INSTALL_ADD_CDBTYPE';

    const INSTALL_EDITDS        = 'INSTALL_EDITDS';
    const INSTALL_GET_DSLIST    = 'INSTALL_GET_DSLIST';


    const REASON_ADD            = 'REASON_ADD';
    const REASON_DEL            = 'REASON_DEL';
    const REASON_UPD            = 'REASON_UPD';
    const REASON_LIST           = 'REASON_LIST';
    const REASON_SEARCH         = 'REASON_SEARCH';
   
    const MONITOR_NDLIST        = 'MONITOR_NDLIST';

    const CONTACT_NEW           = 'CONTACT_NEW';
    const CONTACT_UPDATE        = 'CONTACT_UPDATE';
    const CONTACT_RATING_INC    = 'CONTACT_RATING_INC';
    const CONTACT_RATING_DEC    = 'CONTACT_RATING_DEC';

    const VIEW_NEW              = 'VIEW_NEW';
    const VIEW_FROM_HIS         = 'VIEW_FROM_HIS';
    const VIEW_UPDATE           = 'VIEW_UPDATE';
    const VIEW_ADD_GROUP        = 'VIEW_ADD_GROUP';
    const VIEW_ADD_CITY         = 'VIEW_ADD_CITY';
    const VIEW_ADD_CNC          = 'VIEW_ADD_CNC';
    const VIEW_UPDATE_DEF       = 'VIEW_UPDATE_DEF';

    const VIEW_FLOORS_GET       = 'VIEW_FLOORS_GET';
    const VIEW_FLOORS_UPDNAME   = 'VIEW_FLOORS_UPDNAME';
    const VIEW_FLOORS_UPDORDER  = 'VIEW_FLOORS_UPDORDER';
    const VIEW_CREATE_VWFLOOR   = 'VIEW_CREATE_VWFLOOR';
    const VIEW_DELETE_VWFLOOR   = 'VIEW_DELETE_VWFLOOR';
    const VIEW_UPDATE_VWFLDS    = 'VIEW_UPDATE_VWFLDS';
    const VIEW_CREATE_VWFLDS    = 'VIEW_CREATE_VWFLDS';
    const VIEW_DELETE_VWFLDS    = 'VIEW_DELETE_VWFLDS';

    const USERS_FULL_LIST       = 'USERS_FULL_LIST';
    const USERS_GET_ACCESS_INFO = 'USERS_GET_ACCESS_INFO';
    const USERS_ALLOW_ACCESS    = 'USERS_ALLOW_ACCESS';
    const USERS_DENY_ACCESS     = 'USERS_DENY_ACCESS';
    const USERS_SET_CNC_ACCESS  = 'USERS_SET_CNC_ACCESS';
    const USERS_DEACTIVATE_USER = 'USERS_DEACTIVATE_USER';
    const USERS_ACTIVATE_USER   = 'USERS_ACTIVATE_USER';
    const USERS_DELETE_USER     = 'USERS_DELETE_USER';
    const USERS_UPDATE_USER     = 'USERS_UPDATE_USER';
    const USERS_MOVE_USER       = 'USERS_MOVE_USER';
    
    const USERS_DELETE_PHOTO    = 'USERS_DELETE_PHOTO';
    const USERS_LOAD_PHOTO      = 'USERS_LOAD_PHOTO';
    
    const USERS_CREATE_GROUP    = 'USERS_CREATE_GROUP';
    const USERS_RENAME_GROUP    = 'USERS_RENAME_GROUP';
    const USERS_DELETE_GROUP    = 'USERS_DELETE_GROUP';
    
    
    const DATA_TABLES_GET       = 'DATA_TABLES_GET';
    const DATA_SENSORS_GET      = 'DATA_SENSORS_GET';
    const DATA_TABLE_FIELDS     = 'DATA_TABLE_FIELDS';

    const CONCEPTIONS_UPDATE    = 'CONCEPTIONS_UPDATE';
    const CONCEPTIONS_MOVE      = 'CONCEPTIONS_MOVE';
    const CONCEPTIONS_NEW       = 'CONCEPTIONS_NEW';
    const CONCEPTIONS_DELETE    = 'CONCEPTIONS_DELETE';
    const CONCEPTIONS_VALIDATE  = 'CONCEPTIONS_VALIDATE';

    const MESSAGES_GET          = 'MESSAGES_GET';
    const MESSAGES_HIDE         = 'MESSAGES_HIDE';
    const MESSAGES_TYPE         = 'MESSAGES_TYPE';
    const MESSAGES_UPDATE       = 'MESSAGES_UPDATE';
    const MESSAGES_INSERT       = 'MESSAGES_INSERT';
    const MESSAGES_DELETE       = 'MESSAGES_DELETE';
    
    const CACHE_D               = 'CACHE_D';
    const CACHE_M               = 'CACHE_M';
    const CACHE_Y               = 'CACHE_Y';
    
    const BOTCONFIG_GETTEXT     = 'BOTCONFIG_GETTEXT';
    const BOTCONFIG_SAVETEXT    = 'BOTCONFIG_SAVETEXT';
    
}

abstract class OPERATION {
    //// Операции для записи логов. Должны присутствовать в таблице admin_operations

    const CREATE_DS             = 'CREATE_DS';
    const CREATE_APP            = 'CREATE_APP';
    const CREATE_OBJTYPE        = 'CREATE_OBJTYPE';
    const CREATE_CDBTYPE        = 'CREATE_CDBTYPE';
    const CREATE_CONTACT        = 'CREATE_CONTACT';
    const CREATE_VWGROUP        = 'CREATE_VWGROUP';
    const CREATE_VWCITY         = 'CREATE_VWCITY';
    const CREATE_VWCNC          = 'CREATE_VWCNC';
    const CREATE_VIEW           = 'CREATE_VIEW';
    const UPDATE_DS             = 'UPDATE_DS';
    const UPDATE_CONTACT_RAT    = 'UPDATE_CONTACT_RAT';
    const UPDATE_CONTACT        = 'UPDATE_CONTACT';
    const UPDATE_VWGROUP        = 'UPDATE_VWGROUP';
    const UPDATE_VWCITY         = 'UPDATE_VWCITY';
    const UPDATE_VWCNC          = 'UPDATE_VWCNC';
    const UPDATE_VIEW           = 'UPDATE_VIEW';
    const CREATE_VWFLOOR        = 'CREATE_VWFLOOR';
    const DELETE_VWFLOOR        = 'DELETE_VWFLOOR';
    const UPDATE_VWFLOOR_NAME   = 'UPDATE_VWFLOOR_NAME';
    const UPDATE_VWFLOOR_DEF    = 'UPDATE_VWFLOOR_DEF';
    const UPDATE_VWFLOOR_ORDER  = 'UPDATE_VWFLOOR_ORDER';
    const UPDATE_VWFLDS         = 'UPDATE_VWFLDS';
    const CREATE_VWFLDS         = 'CREATE_VWFLDS';
    const DELETE_VWFLDS         = 'DELETE_VWFLDS';
    
    
    const UPDATE_USER           = 'UPDATE_USER';
    const DELETE_USER           = 'DELETE_USER';
    const ACTIVATE_USER         = 'ACTIVATE_USER';
    const DEACTIVATE_USER       = 'DEACTIVATE_USER';
}

abstract class ADMINMODES {

    const ADMIN6    = 'ADMIN6';
    const ADMIN_VIP = 'ADMIN_VIP';

}

abstract class VIEWSTATUS {
    const ONLINE    = 0;
    const DEV       = 1;
    const TEMPLATE  = 2;
    const ONLINEPART= 3;
    const TESTING   = 4;
    const ARCHIVE   = 5;
    const MANUALINP = 6;

    public static $list = array(
        0 => 'Онлайн',
        1 => 'Разработка',
        2 => 'Шаблон',
        3 => 'Онлайн периодически',
        4 => 'Тестирование',
        5 => 'Архивный',
        6 => 'Ручной ввод',
    );

}

?>
